<html xmlns="http://www.w3c.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Login</title>
</h:head>
<h:body>
	<center>
		<p:panel header="Login Form" style="width: 350;">
			<h:form>
				<p:growl id="messages" />
				<div>
					<h:messages></h:messages>
				</div>
				<h:panelGrid columns="2" cellpadding="2">
					<h:outputLabel for="#{loginBean.userName}" value="UserName" />
					<h:inputText value="#{loginBean.userName}" label="UserName"></h:inputText>
					<h:outputLabel for="#{loginBean.password}" value="Password" />
					<h:inputSecret value="#{loginBean.password}"></h:inputSecret>
					<h:commandButton type="submit" ajax="false" value="Login" action="#{loginBean.login}"></h:commandButton>
				</h:panelGrid>
			</h:form>
		</p:panel>
	</center>
</h:body>
</html>
